package main

import (
	"sync"
	"fmt"
)

func main(){
	var wg sync.WaitGroup
	sayhello := func(){
		defer wg.Done()
		fmt.Println("Hello")
	}

	wg.Add(1)
	go sayhello()
	wg.Wait()
}